<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Counter 类</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="internals2.counter.examples.objective.html">对象化接口</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="internals2.counter.counter-class.construct.html">Counter::__construct</a></div>
 <div class="up"><a href="internals2.counter.html">&quot;counter&quot; 扩展 - 一个连续的实例</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="internals2.counter.counter-class" class="reference">
   <h1 class="title">Counter 类</h1>
   
   
   <div class="partintro">
    <div class="section" id="internals2.counter.counter-class.intro">
     <h2 class="title">简介</h2>
     <p class="simpara">
      表示一个独立的计数器对象。
     </p>
    </div>
   
    <div class="section" id="internals2.counter.counter-class.synopsis">
     <h2 class="title">类摘要</h2>
     
     <div class="classsynopsis">
      <div class="ooclass"></div>
     
      <div class="classsynopsisinfo">
       <span class="ooclass"><strong class="classname">Counter</strong></span>
       {</div>
 
      <div class="constructorsynopsis dc-description">
      <span class="methodname"><a href="internals2.counter.counter-class.construct.html" class="methodname">__construct</a></span>
       ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
      [, <span class="methodparam"><span class="type">integer</span> <code class="parameter">$initial_value</code></span>
      [, <span class="methodparam"><span class="type">integer</span> <code class="parameter">$flags</code></span>
     ]] )</div>

      <div class="methodsynopsis dc-description">
      <span class="type">integer</span><span class="methodname"><a href="internals2.counter.counter-class.getValue.html" class="methodname">getValue</a></span>
       ( <span class="methodparam">void</span>
      )</div>
<div class="methodsynopsis dc-description">
      <span class="type">void</span><span class="methodname"><a href="internals2.counter.counter-class.bumpValue.html" class="methodname">bumpValue</a></span>
       ( <span class="methodparam"><span class="type">integer</span> <code class="parameter">$offset</code></span>
      )</div>
<div class="methodsynopsis dc-description">
      <span class="type">void</span><span class="methodname"><a href="internals2.counter.counter-class.resetValue.html" class="methodname">resetValue</a></span>
       ( <span class="methodparam">void</span>
      )</div>
<div class="methodsynopsis dc-description">
      <span class="type">mixed</span><span class="methodname"><a href="internals2.counter.counter-class.getMeta.html" class="methodname">getMeta</a></span>
       ( <span class="methodparam"><span class="type">integer</span> <code class="parameter">$attribute</code></span>
      )</div>
<div class="methodsynopsis dc-description">
      <span class="modifier">static</span>
      <span class="type">Counter</span><span class="methodname"><a href="internals2.counter.counter-class.getNamed.html" class="methodname">getNamed</a></span>
       ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
      )</div>
<div class="methodsynopsis dc-description">
      <span class="modifier">static</span>
      <span class="type">void</span><span class="methodname"><a href="internals2.counter.counter-class.setCounterClass.html" class="methodname">setCounterClass</a></span>
       ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
      )</div>

     }</div>
    </div>
   </div>
   
   

   

   

   
   
   
   
   

   

  <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="internals2.counter.counter-class.construct.html">Counter::__construct</a> — 创建一个包含单一数值的计数器实例。</li><li><a href="internals2.counter.counter-class.getValue.html">Counter::getValue</a> — 获取计数器的当前值。</li><li><a href="internals2.counter.counter-class.bumpValue.html">Counter::bumpValue</a> — 修改计数器的当前值。</li><li><a href="internals2.counter.counter-class.resetValue.html">Counter::resetValue</a> — 重置计数器的当前值。</li><li><a href="internals2.counter.counter-class.getMeta.html">Counter::getMeta</a> — 返回计数器的部分元信息。</li><li><a href="internals2.counter.counter-class.getNamed.html">Counter::getNamed</a> — 取回一个名称已存在的计数器。</li><li><a href="internals2.counter.counter-class.setCounterClass.html">Counter::setCounterClass</a> — 设置由 Counter::getNamed 返回的计数器类。</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="internals2.counter.examples.objective.html">对象化接口</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="internals2.counter.counter-class.construct.html">Counter::__construct</a></div>
 <div class="up"><a href="internals2.counter.html">&quot;counter&quot; 扩展 - 一个连续的实例</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
